package com.haierp.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * 
 * Title: Seller.java
 * Description: Seller Model
 *
 * @author jc
 * Mar 18, 2017
 * 
 * CREATE TABLE `seller` (
  `id` bigint(19) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `name` varchar(64) DEFAULT NULL COMMENT '名称',
  `user_id` bigint(19) DEFAULT NULL COMMENT '登入用户ID',
  `user_name` varchar(64) DEFAULT NULL COMMENT '登入用户ID',
  `code` varchar(64) DEFAULT NULL COMMENT '经销商类型代码',
  `type_id` bigint(19) DEFAULT NULL COMMENT '经销商类型ID',
  `type_name` varchar(64) DEFAULT NULL COMMENT '经销商类型Name',
  `type_code` varchar(64) DEFAULT NULL COMMENT '经销商类型代码',
  `gmt_create` datetime NOT NULL COMMENT '创建时间',
  `gmt_modify` datetime NOT NULL COMMENT '操作时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='经销商'
 *
 */

@TableName("`seller`")
public class Seller implements Serializable {
	
	@TableId(type = IdType.AUTO)
	private Long id;
	private String name;
	@TableField(value = "user_id")
	private Long userId;
	@TableField(value = "user_name")
	private String userName;
	private String code;
	@TableField(value = "type_id")
	private Long typeId;
	@TableField(value = "type_name")
	private String typeName;
	@TableField(value = "open_id")
	private String openId;
	@TableField(value = "type_code")
	private String typeCode;
	@TableField(value = "gmt_create")
	private Date gmtCreate;
	@TableField(value = "gmt_modify")
	private Date gmtModify;
	
	@TableField(value = "company_id") //所属公司
	private Long companyId;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Long getTypeId() {
		return typeId;
	}
	public void setTypeId(Long typeId) {
		this.typeId = typeId;
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public String getOpenId() {
		return openId;
	}
	public void setOpenId(String openId) {
		this.openId = openId;
	}
	public String getTypeCode() {
		return typeCode;
	}
	public void setTypeCode(String typeCode) {
		this.typeCode = typeCode;
	}
	public Date getGmtCreate() {
		return gmtCreate;
	}
	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}
	public Date getGmtModify() {
		return gmtModify;
	}
	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}
	public Long getCompanyId() {
		return companyId;
	}
	public void setCompanyId(Long companyId) {
		this.companyId = companyId;
	}
	
}
